package com.zl.smartmall.library.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class KeysBean  implements Serializable{
	private String end_date;
	public String getEnd_date() {
		return end_date;
	}
	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	private String key;
	
	public static List<KeysBean> parse(JSONArray jsonArray) throws JSONException{
		List<KeysBean> keylist = new ArrayList<KeysBean>();
		for (int i = 0; i < jsonArray.length(); i++) {
			JSONObject jsonObject = new JSONObject(jsonArray.get(i).toString());
			KeysBean bean = new KeysBean();
			bean.end_date = jsonObject.getString("end_date");
			bean.key = jsonObject.getString("key");
			keylist.add(bean);
		}
		return keylist;
	}

}
